home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / bsrc_p2.arc / TIMER.H < prev    next >
Encoding:
C/C++ Source or Header  |  1988-11-30  |  3.0 KB  |  73 lines

  1. /*--------------------------------------------------------------------------*/
  2. /*                                                                          */
  3. /*                                                                          */
  4. /*      ------------         Bit-Bucket Software <no-Inc>                   */
  5. /*      \ 10001101 /         Writers and Distributors of                    */
  6. /*       \ 011110 /          No-Cost<no-tm> Software.                       */
  7. /*        \ 1011 /                                                          */
  8. /*         ------            KopyRong (K) 1987.  ALL RIGHTS REVERSED.       */
  9. /*                                                                          */
  10. /*                                                                          */
  11. /*                                                                          */
  12. /*                                                                          */
  13. /*   This  software  package is being distributed WITH FULL SOURCE CODE     */
  14. /*   with the  following  conditions:    1)  If  anything awful happens     */
  15. /*   because  you  use    it   (or  don't  use  it),  you  accept  full     */
  16. /*   responsibility;  2) you  don't start making tons of voice calls to     */
  17. /*   the authors to complain or  make  suggestions  about enhancements,     */
  18. /*   useful or otherwise;  3) you  do not reuse this code in commercial     */
  19. /*   products without specific permission to do so  from  the  authors;     */
  20. /*   4) If you find any problems you send  fixes  to  the  authors  for     */
  21. /*   inclusion  in  updates;    5) You find some way  to  express  your     */
  22. /*   appreciation  for  this  method of distribution, either by writing     */
  23. /*   code or  application  notes,  or  just sending along a "Thank You"     */
  24. /*   message.                                                               */
  25. /*                                                                          */
  26. /*   There is  copyrighted  code  in  this product.  We either wrote it     */
  27. /*   ourselves or got  permission  to use it.  Please don't force us to     */
  28. /*   pay a lawyer --  have some respect for our motives and don't abuse     */
  29. /*   this "license".                                                        */
  30. /*                                                                          */
  31. /*                                                                          */
  32. /*--------------------------------------------------------------------------*/
  33.  
  34.  
  35. /*
  36.     $Header$
  37. */
  38.  
  39. /*
  40.    $Source$
  41.  
  42.         This file contains header information for the timer routines.
  43. */
  44.  
  45.  
  46. /*
  47.  * $Log$
  48.  */
  49.  
  50.  
  51. /* This union holds a long integer as a long, 2 ints or 4 chars */
  52.  
  53. typedef union
  54.     {
  55.     long l;
  56.     struct
  57.         {
  58.         unsigned char c[4];
  59.         } c;
  60.     struct
  61.         {
  62.         unsigned int i[2];
  63.         } i;
  64.     } TIMETYPE;
  65.  
  66.  
  67. #define PER_WEEK  60480000L
  68. #define PER_DAY    8640000L
  69. #define PER_HOUR    360000L
  70. #define PER_MINUTE     6000L
  71. #define PER_SECOND     100L
  72.  
  73.